<script type="text/template" id="index-template">
         {{each list}}
          <li>
            <div class="am-gallery-item square-class-list">
              <div class="list-avatar">
                <a href=""><img class="am-circle"
                    src="{{$value.class_logo}}"></a>
              </div>
              <ul>
                <li class="of-hidden"><strong><a href="" title="NetSec2019">{{$value.class_chinesename}}</a></strong></li>
                <li><a class="am-badge am-badge-success am-round">{{$value.school_name}}</a></li>
              </ul>
            </div>
          </li>
          {{/each}}
        </script>
<!-- 首页的博文版块 -->
<script type="text/template" id="post-template">
{{each data}}
            <li class="am-g am-list-item-desced am-list-item-thumbed am-list-item-thumb-bottom-right">
              <h3 class="am-list-item-hd">
                <a href="" target="_blank">{{$value.blog_title}}</a>
              </h3>
              <div class="feed-avatar">
                <a href="" target="_blank"><img class="am-img-thumbnail" src="{{$value.blog_avatar}}"></a>
              </div>
              <div class="avatar-item-text">
                <div class="am-list-item-text description">{{$value.blog_content}}</div>
              </div>
              <div class="am-u-sm-12 am-text-sm">
                <div class="am-fr">
                  <i class="iconfont">&#xe61f;</i><a title="班级" href="" target="_blank">
                    {{$value.class_name}}</a>&nbsp;
                  <i class="iconfont">&#xe614;</i><a title="发布人" href="" target="_blank">
                    {{$value.blog_issuername}}</a>&nbsp;
                  <span title="发布时间"><i class="iconfont">&#xe616;</i> {{$value.blog_time}}</span>&nbsp;
                  <span title="评论"><i class="iconfont">&#xe606;</i> {{$value.blog_discussantnumber}}</span>&nbsp;
                  <span title="阅读"><i class="iconfont">&#xe641;</i> {{$value.blog_viewCount}}</span>
                </div>
              </div>
            </li>
{{/each}}
</script>
<script type="text/template" id="assignmentUser-template">
{{each data}}
            <li class="am-g am-list-item-desced am-list-item-thumbed am-list-item-thumb-bottom-right">
              <h3 class="am-list-item-hd">
                <a href="">{{$value.assignment_title}}</a>
              </h3>
              <div class="feed-avatar">
                <a href=""><img class="am-img-thumbnail" src="{{$value.assignment_avatar}}"></a>
              </div>
              <div class="avatar-item-text">
                <div class="am-list-item-text description">{{$value.assignment_content}}</div>
              </div>
              <div class="am-u-sm-12 am-text-sm">
                <div class="am-fr">
                  <i class="iconfont">&#xe61f;</i><a title="班级" href="">
                    {{$value.assignment_name}}</a>&nbsp;
                  <i class="iconfont">&#xe614;</i><a title="发布人" href="">
                    {{$value.assignment_issuername}}</a>&nbsp;
                  <span title="发布时间"><i class="iconfont">&#xe616;</i> {{$value.assignment_startTime}}</span>&nbsp;
                  <span title="提交"><i class="iconfont">&#xe600;</i> {{$value.assignment_submit}}</span>
                </div>
              </div>
            </li>
            {{/each}}
</script>